/**
 * 格式化金额，分转为元
 * @param {*} money
 */
export function formatMoney(money) {
  return (money / 100).toFixed(2);
}

/**
 * 暂停一段时间
 * @param {*} duration
 */
export function sleep(duration = 1000) {
  return new Promise(resolve => setTimeout(resolve, duration));
}
